﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="Statistic.aspx.cs" Inherits="Admin_Statistic" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="content-box">
        <div class="content-box-header">
            <h3>
                Statistic
            </h3>
        </div>
        <div style="margin:10px;border-radius:5px;border:1px solid #eeeeed">
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <asp:View ID="View1" runat="server">
                    <table width="100%" border="0">
                        <tr>
                            <td style="width: 50%">
                                <label>
                                    From :</label>
                            </td>
                            <td>
                                <label>
                                    To :</label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <eo:DatePicker ID="DatePicker1" runat="server" ControlSkinID="None" DayCellHeight="16"
                                    DayCellWidth="21" DayHeaderFormat="FirstLetter" DisabledDates="" GridLineColor="207, 217, 227"
                                    GridLineFrameVisible="False" GridLineVisible="True" SelectedDates="" TitleFormat="MMM yyyy"
                                    TitleLeftArrowHtml="&amp;lt;" TitleRightArrowHtml="&amp;gt;" VisibleDate="2012-02-01"
                                    Width="200px">
                                    <CalendarStyle CssText="border-right: #cfd9e3 1px solid; border-top: #cfd9e3 1px solid; font-size: 11px; border-left: #cfd9e3 1px solid; cursor: hand; border-bottom: #cfd9e3 1px solid; font-family: verdana; background-color: #eaeaea" />
                                    <TitleStyle CssText="padding-right: 3px; padding-left: 3px; font-weight: bold; padding-bottom: 3px; color: white; padding-top: 3px; border-bottom: #cfd9e3 1px solid; background-color: #006699; font-size: 11px; font-family: verdana;" />
                                    <DayHeaderStyle CssText="font-size: 11px; font-family: verdana;height: 17px" />
                                    <DayStyle CssText="font-size: 11px; font-family: verdana;border-right: #eaeaea 1px solid; border-top: #eaeaea 1px solid; border-left: #eaeaea 1px solid; border-bottom: #eaeaea 1px solid; background-color: #eaeaea" />
                                    <DayHoverStyle CssText="font-size: 11px; font-family: verdana;border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid; border-bottom: black 1px solid; background-color: white" />
                                    <SelectedDayStyle CssText="font-size: 11px; font-family: verdana;border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid; border-bottom: black 1px solid; background-color: white" />
                                </eo:DatePicker>
                            </td>
                            <td>
                                <eo:DatePicker ID="DatePicker2" runat="server" ControlSkinID="None" DayCellHeight="16"
                                    DayCellWidth="21" DayHeaderFormat="FirstLetter" DisabledDates="" GridLineColor="207, 217, 227"
                                    GridLineFrameVisible="False" GridLineVisible="True" SelectedDates="" TitleFormat="MMM yyyy"
                                    TitleLeftArrowHtml="&amp;lt;" TitleRightArrowHtml="&amp;gt;" VisibleDate="2012-02-01"
                                    Width="200px">
                                    <CalendarStyle CssText="border-right: #cfd9e3 1px solid; border-top: #cfd9e3 1px solid; font-size: 11px; border-left: #cfd9e3 1px solid; cursor: hand; border-bottom: #cfd9e3 1px solid; font-family: verdana; background-color: #eaeaea" />
                                    <TitleStyle CssText="padding-right: 3px; padding-left: 3px; font-weight: bold; padding-bottom: 3px; color: white; padding-top: 3px; border-bottom: #cfd9e3 1px solid; background-color: #006699; font-size: 11px; font-family: verdana;" />
                                    <DayHeaderStyle CssText="font-size: 11px; font-family: verdana;height: 17px" />
                                    <DayStyle CssText="font-size: 11px; font-family: verdana;border-right: #eaeaea 1px solid; border-top: #eaeaea 1px solid; border-left: #eaeaea 1px solid; border-bottom: #eaeaea 1px solid; background-color: #eaeaea" />
                                    <DayHoverStyle CssText="font-size: 11px; font-family: verdana;border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid; border-bottom: black 1px solid; background-color: white" />
                                    <SelectedDayStyle CssText="font-size: 11px; font-family: verdana;border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid; border-bottom: black 1px solid; background-color: white" />
                                </eo:DatePicker>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:DropDownList ID="drlStatus" Width="250px" runat="server">
                                    <asp:ListItem>Has delivered</asp:ListItem>
                                    <asp:ListItem>No delivered</asp:ListItem>
                                </asp:DropDownList>
                                <asp:Button ID="btnFill" runat="server" Text="filter" Width="40px" Height="28px"
                                    CssClass="button" OnClick="btnFill_Click" />
                            </td>
                        </tr>
                    </table>
                    <div style="width: auto; border: 1px solid #eeeeed; border-radius: 5px">
                        <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red"></asp:Label>
                        <div style="border: 1px solid #5fa226; border-radius: 5px;">
                            <asp:GridView ID="grvStatistic" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                                Width="100%" AllowPaging="true" PageSize="4" BorderColor="#CCCCCC" BorderStyle="None"
                                BorderWidth="1px" CellPadding="3" OnRowCommand="grvStatistic_RowCommand" OnPageIndexChanging="grvStatistic_PageIndexChanging">
                                <Columns>
                                    <asp:TemplateField HeaderText="ID">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbnDetails" runat="server" CommandName="View" CommandArgument='<%#Eval("Id") %>'><%#Eval("Id") %></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Total Amount">
                                        <ItemTemplate>
                                            <%#Eval("TotalAmount") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Order Date">
                                        <ItemTemplate>
                                            <%#Eval("Date") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Delivery Date">
                                        <ItemTemplate>
                                            <%#Eval("DateCom") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Member ID">
                                        <ItemTemplate>
                                            <%#Eval("MId") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Status">
                                        <ItemTemplate>
                                            <%#Eval("Status") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <FooterStyle BackColor="White" ForeColor="#000066" />
                                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#5fa226" Font-Bold="True" ForeColor="White" Height="50px"
                                    Font-Size="16px" />
                            </asp:GridView>
                        </div>
                    </div>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <h2 style="text-align: center">
                        Bill Details</h2>
                    <br />
                    <div style="border: 1px solid #eeeeed; border-radius: 5px;">
                        <table width="100%" border="0">
                            <tr>
                                <td style="width: 20%">
                                    Member ID
                                </td>
                                <td>
                                    <asp:Label ID="lblIDMember" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 20%">
                                    Addesss
                                </td>
                                <td>
                                    <asp:Label ID="lblAddress" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 20%">
                                    Messages
                                </td>
                                <td>
                                    <asp:Label ID="lblMessages" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 20%">
                                    Total Amount
                                </td>
                                <td>
                                    <asp:Label ID="lblTotal" runat="server" Text=""></asp:Label>$
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 20%">
                                    Status
                                </td>
                                <td>
                                    <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <br />
                    <br />
                    <h3>
                        <asp:Label ID="lblBouquet" runat="server" Text="Bouquet"></asp:Label></h3>
                    <div style="border: 1px solid #5fa226; border-radius: 5px;">
                        <asp:GridView ID="grvBou" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%">
                            <Columns>
                                <asp:TemplateField HeaderText="Bouquet ID" HeaderStyle-Width="40%">
                                    <ItemTemplate>
                                        <%#Eval("B_ID") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Quantity" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <%#Eval("BiD_Number")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Amount" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <%#Eval("BiD_Amount")%>
                                        $
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5fa226" Font-Bold="True" ForeColor="White" Height="50px"
                                Font-Size="16px" />
                        </asp:GridView>
                    </div>
                    <br />
                    <br />
                    <h3>
                        <asp:Label ID="lblGift" runat="server" Text="Gift" Visible="false"></asp:Label></h3>
                    <div style="border: 1px solid #5fa226; border-radius: 5px;">
                        <asp:GridView ID="grvGift" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%">
                            <Columns>
                                <asp:TemplateField HeaderText="Gift ID" HeaderStyle-Width="40%">
                                    <ItemTemplate>
                                        <%#Eval("G_ID") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Quantity" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <%#Eval("BG_Quantity")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Amount" HeaderStyle-Width="30%">
                                    <ItemTemplate>
                                        <%#Eval("BG_Amount")%>
                                        $
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5fa226" Font-Bold="True" ForeColor="White" Height="50px"
                                Font-Size="16px" />
                        </asp:GridView>
                    </div>
                </asp:View>
            </asp:MultiView>
        </div>
    </div>    
</asp:Content>
